#pragma once
#ifndef H_IMAGE
#define H_IMAGE

#include "SDL/SDL.h"
#include <string>
#include <vector>


class Image
{
private:
	short x, y, width, height;
	SDL_Rect bbox; //boundingbox (offset, width & height)
	SDL_Surface* image;
	
	std::string path;

	void init(std::string path);

public:
    Image();
	Image(std::string path);
	Image(std::string path, short width, short height);
	~Image(void);
	bool load();
   void update(short x, short y);
	void draw(SDL_Surface* screen);
};
#endif
